package com.haoke.buyaction.message.consumer.config;

import com.haoke.cache.redis.RedisCacheConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @author yue13
 */
@Configuration //告诉SpringBoot这是一个配置类 == 配置文件
public class BuyactionMessageConsumerConfiguration extends RedisCacheConfiguration {
    @Bean //给容器中添加组件。方法名作为组件的id。
    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory) {
        return super.redisTemplate(redisConnectionFactory);
    }
}
